package com.wenhai.spring.boot.validation;


import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

public class MyValidatorConstraintValidator implements ConstraintValidator<MyValidator, Long> {


    @Override
    public boolean isValid(Long value, ConstraintValidatorContext context) {
        System.out.println("----------");
        return value < 100;
    }


}